package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SchoolTableMapper;
import com.ruoyi.system.domain.SchoolTable;
import com.ruoyi.system.service.ISchoolTableService;

/**
 * 学校Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-09
 */
@Service
public class SchoolTableServiceImpl implements ISchoolTableService 
{
    @Autowired
    private SchoolTableMapper schoolTableMapper;

    /**
     * 查询学校
     * 
     * @param schoolId 学校主键
     * @return 学校
     */
    @Override
    public SchoolTable selectSchoolTableBySchoolId(Long schoolId)
    {
        return schoolTableMapper.selectSchoolTableBySchoolId(schoolId);
    }

    /**
     * 查询学校列表
     * 
     * @param schoolTable 学校
     * @return 学校
     */
    @Override
    public List<SchoolTable> selectSchoolTableList(SchoolTable schoolTable)
    {
        return schoolTableMapper.selectSchoolTableList(schoolTable);
    }

    /**
     * 新增学校
     * 
     * @param schoolTable 学校
     * @return 结果
     */
    @Override
    public int insertSchoolTable(SchoolTable schoolTable)
    {
        return schoolTableMapper.insertSchoolTable(schoolTable);
    }

    /**
     * 修改学校
     * 
     * @param schoolTable 学校
     * @return 结果
     */
    @Override
    public int updateSchoolTable(SchoolTable schoolTable)
    {
        return schoolTableMapper.updateSchoolTable(schoolTable);
    }

    /**
     * 批量删除学校
     * 
     * @param schoolIds 需要删除的学校主键
     * @return 结果
     */
    @Override
    public int deleteSchoolTableBySchoolIds(Long[] schoolIds)
    {
        return schoolTableMapper.deleteSchoolTableBySchoolIds(schoolIds);
    }

    /**
     * 删除学校信息
     * 
     * @param schoolId 学校主键
     * @return 结果
     */
    @Override
    public int deleteSchoolTableBySchoolId(Long schoolId)
    {
        return schoolTableMapper.deleteSchoolTableBySchoolId(schoolId);
    }
}
